try:
    age = int(input("Input your age: "))
    x = 10 / age
except (ValueError, ZeroDivisionError):
    print("您输入了不合法的数据")
else:
    print(f"Your age is {age}")